/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package mnstudent.datatranferobject;

import java.util.Objects;

/**
 *
 * @author lee
 */
public class StateDTO {
    
    //<editor-fold defaultstate="collapsed" desc=" Attributes ">
    private String m_StateID;
    private String m_NameOfState;
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Properties ">
    public String getStateID(){ return this.m_StateID;};
    
    public void setStateID(String strStateID) { this.m_StateID = strStateID;};
    
    public String getNameOfState(){return this.m_NameOfState;};
    
    public void setNameOfState(String strNameOfState){ this.m_NameOfState = strNameOfState;};
    //</editor-fold>
    
    //<editor-fold defaultstate="collapsed" desc=" Method ">
    public StateDTO(){
        
    }
    
    public StateDTO(String strStateID, String strNameOfState){  
        this.m_StateID = strStateID;
        this.m_NameOfState = strNameOfState;
    }
    
    @Override
    public String toString() {
        return m_NameOfState;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 23 * hash + Objects.hashCode(this.m_StateID);
        hash = 23 * hash + Objects.hashCode(this.m_NameOfState);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final StateDTO other = (StateDTO) obj;
        if (!Objects.equals(this.m_StateID, other.m_StateID)) {
            return false;
        }
        if (!Objects.equals(this.m_NameOfState, other.m_NameOfState)) {
            return false;
        }
        return true;
    }
    //</editor-fold>

    
}
